package PTA_03_09;

public class s4 {
    public static void main(String[] args) {
        int a = 0;
        int b = 0;
        int c = 0;
        for (int i = 100; i < 1000; i++) {
            a = i % 10;
            b = i /10 %10;
            c = i / 100;
            if((Math.pow(a,3) + Math.pow(b,3) + Math.pow(c,3)) == i)
            {
                System.out.println(i);
            }
        }
    }
}
